﻿using System;
using UnityEngine;

public class Action1005 : GameAction {
    private ActionResult actionResult;

    public Action1005 ( )
        : base(1005) {
    }

    protected override void SendParameter (NetWriter writer, ActionParam actionParam) {

        writer.writeString("UserName", actionParam.Get<string>("userName"));
        writer.writeByte("Sex", actionParam.Get<byte>("sex"));
        writer.writeString("HeadID", actionParam.Get<string>("headID"));
        writer.writeString("RetailID", actionParam.Get<string>("retailID"));
        writer.writeString("Pid", actionParam.Get<string>("pid"));
        writer.writeShort("MobileType", actionParam.Get<short>("mobileType"));
        writer.writeShort("ScreenX", actionParam.Get<short>("screenX"));
        writer.writeShort("ScreenY", actionParam.Get<short>("screenY"));
        writer.writeShort("ClientAppVersion", actionParam.Get<short>("clientAppVersion"));
        writer.writeInt32("GameID", actionParam.Get<int>("gameID"));
        writer.writeInt32("ServerID", actionParam.Get<int>("serverID"));
    }

    protected override void DecodePackage (NetReader reader) {
        actionResult = new ActionResult( );
    }

    public override ActionResult GetResponseData ( ) {
        return actionResult;
    }
}
